﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FR.CodeVisualizer.Controls.TreeList
{
    class Util
    {
        public static Rectangle AdjustRectangle(Rectangle r, Padding padding)
        {
            r.X += padding.Left;
            r.Width -= padding.Left + padding.Right;
            r.Y += padding.Top;
            r.Height -= padding.Top + padding.Bottom;
            return r;
        }
    }
}
